package com.yanggeng.demo.beginnerguidedemo.widget

import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.widget.LinearLayout

class DispatchEventLinearLayout(context: Context, attributeSet: AttributeSet): LinearLayout(context, attributeSet) {

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        Log.e("LinearLayout", "---------LinearLayout dispatchTouchEvent-----------")
        return super.dispatchTouchEvent(ev)
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        Log.e("LinearLayout", "---------LinearLayout onTouchEvent---------")
        return super.onTouchEvent(event)
    }
}